package com.woyowodaows.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * ------------------------------
 * map对象操作
 * ------------------------------
 * @author wdm  @date 2017年12月20日
 * @version 1.0
 */
public class Kv {
	
	private Map<String,Object> map=new HashMap<String,Object>();
	
	private Kv(){}
	
	public static Kv build(){
		Kv map=new Kv();
		return map;
	}
	
	public static Kv build(String key,Object value){
		Kv map=new Kv();
		map.put(key, value);
		return map;
	}
	
	public Kv put(String key,Object value){
		map.put(key, value);
		return this;
	}
	
	public Object get(String key){
		return map.get(key);
	}
	
	public Kv putMap(Map<String,Object> map){
		this.map.putAll(map);
		return this;
	}
	
	public Map<String,Object> get(){
		return map;
	}

	public static void main(String[] args) {
		Kv.build("","").put("","").put("","").get();
	}
}
